<?php
unset($_POST);
$_POST = $_REQUEST;
ini_set("max_execution_time",18000);

//路径定义
define('IP','202.206.245.111');
$loginurl = "http://".IP."/_data/index_LOGIN.aspx"; //登录页
$picurl = "http://".IP."/sys/ValidateCode.aspx"; //验证图片
$scoreformurl = "http://".IP."/xscj/Stu_MyScore.aspx"; //成绩单查询表单
$scoreurl = "http://".IP."/xscj/Stu_MyScore_rpt.aspx"; //成绩单

$tableformurl = "http://".IP."/znpk/Pri_StuSel.aspx"; //课表查询表单
$tableurl = "http://".IP."/znpk/Pri_StuSel_rpt.aspx"; //成绩单

$personurl = "http://".IP."/xsxj/Stu_MyInfo_RPT.aspx"; //个人信息

$personurl_tea = "http://".IP."/jxzy/Tea_MyInfo_RPT.aspx"; //教师个人信息

$agent = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.57 Safari/537.36';//伪装浏览器

//数据库定义
//$link = mysql_connect('localhost','root',''); 
//mysql_select_db("killqg", $link);

//include 登陆类
include("class/Snoopy.class.php");
//html解析类
include("class/simple_html_dom.php");
//配置session
$lifeTime = 2 * 3600;   
session_set_cookie_params($lifeTime);
//获取session
if(isset($_POST['session_id'])) session_id($_POST['session_id']);
session_start();
//错误输出
function json_err($errcode,$errmsg){
    //用于生成json error内容"""
    return json_encode(array('errcode' =>$errcode,'errmsg' =>$errmsg));
}
if(isset($_POST['noapi'])){
 echo '<meta http-equiv="Content-Type" content="text/html; charset=utf-8">';	
}

    
